Learning Objectives

After completing this lesson, you’ll be able to:

What are Resources?

The final and preferred method of managing source data in FME Server is to use the system of tools called Resources.

"Resources" is an inbuilt file management system that allows data (and other files) to be published to an FME Server instance and used within all Server operations. Resources can be managed through the Resources page accessed from the main menu, under "Files and Connections."

Browsing to the Resources page on FME Server

The Resources page is where you can find all of the files that are uploaded to FME Server and also the files that are created by FME Server:

The Resources page

As you can see, the Resources file system is set up with many default folders in which files can be stored. Custom folders that you create can also be added to the file system, we'll do this in the next exercise. For datasets the most logical folder to use is the Data folder:

Possible Actions on the Resources page

Above is the Data folder containing several files. Once a dataset has been checked, the Actions button is no longer greyed out and lists various actions that can be performed on the file or folder, such as duplicate, edit, upload, copy, delete, or move files (or folders).

Note

Remember that resources and repositories are different. Workspaces should be published to repositories. You will not be able to run them if you upload them to a resource.

Other Upload Methods

Besides the web interface, there are other ways of getting data into the Resources file system.

FME Server Publishing Wizard

First is the FME Server publishing wizard in FME Workbench. If not otherwise specified at installation, the default method is to select the files and upload them to the same repository as the workspace. This is the method covered in previous lessons in this course. However, it is preferable to change the location to the Resources file system:

Selecting the shared Data folder

Server File System

Alternatively, FME Server resources actually exist on the Server machine's file system, meaning the data can be copied there directly. The default location (on a Windows operating system) is C:\ProgramData\Safe Software\FME Server\resources.

Note

ProgramData is a hidden folder. In order to see it on your Windows Machine, click the View tab on the ribbon in Windows Explorer, then in the Show/Hide category, enable Hidden Items.

FME Server Resources Page

A final way to upload data to the Resource system is to click the New button on the main Resources page in FME Server. This button allows a connection to be made directly to a network-based resource via a UNC path or an Amazon S3 file system (for upload or download).

Creating a new resource

Some important limitations include that while network-based resources can be used within workspaces, Amazon S3 file systems cannot. Additionally, the resources must be shared with the FME Server Service Account to use them with FME Server Services.

Using Uploaded Data

Using Resources data in a translation is simply a case of selecting it from that folder where prompted. All prompts for data allow the selection of files from a Resources folder.

For example, a user has uploaded a MapInfo TAB Parks dataset to the Resources data folder. Provided the source dataset is a published parameter, when the workspace is run the user is able to select data from the Resources folders, like so:

Using uploaded data

In fact, it's even possible to set the output data folder to be a Resources folder too:

Using data from the shared Resources data folder with a user parameter

Don't be concerned that the value doesn't show the full file path but rather a value contained within $(). When a folder is stored in Resources, it is assigned an FME Server User Parameter value, which is essentially a shortcut to the FME Server System Share file path.

Note

You can learn more about user parameters and the $() notation in Build Versatile Self-Serve Workflows.

Benefits for Data Management

There are several benefits to using the Resources file system as a data storage tool: